<?
$rubrics = $this->rubrics;
?>

<table>
    <? foreach ($rubrics as $rubric): ?>
    <tr>
        <td>
            <?= $rubric['name'] ?>
            <table>
                <? foreach ($rubric['children'] as $child): ?>
                <tr>
                    <td>
                        <a href="/items/view/rubric/<?= $child['id'] ?>">
                            <?= $child['name'] ?>
                        </a>
                    </td>
                </tr>
                <? endforeach; ?>
            </table>
        </td>
    </tr>
    <? endforeach; ?>
</table>

    <a href="/items/add">Add message</a>